﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace IMIS_ERP.Web.ERP_Manager
{
    public partial class EM_Page_Left : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["UCode"].ToString().Substring(18, 1) != "3")
                {
                    windows.Visible = false;
                }
                //else if (Session["UCode"].ToString().Substring(18, 1) == "1")
                //{
                //    windows3.Visible = false;
                //}
                //else
                //{
                //    windows1.Visible = false;
                //    windows2.Visible = false;
                //}
                if (Session["UType1"].ToString() != "0" && Session["UType1"].ToString() != "1")
                {
                    agent.Visible = false;
                }
            }

        }

    }
}